package com.maxatime.dao;

import com.maxatime.pojo.Dormitory;
import com.maxatime.pojo.vo.DormitoryVo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface DormitoryMapper {
    int deleteByPrimaryKey(Integer pkId);

    int insert(Dormitory record);

    int insertSelective(Dormitory record);

    Dormitory selectByPrimaryKey(Integer pkId);

    int updateByPrimaryKeySelective(Dormitory record);

    int updateByPrimaryKey(Dormitory record);

    List<Dormitory> findAll(DormitoryVo dormitoryVo);

    List<Dormitory> dorxlkone();

    List<Dormitory> dorxlktwo(Dormitory d);

    List<Dormitory> dorxlkthree(Dormitory d);

   List<Dormitory> dorxlkgly();

   List<Dormitory> dorxlkcwsl();

   List<Dormitory> dorxlksyzt();

    //当前宿舍的现住学生
    Integer number(String dormitoryName);
}